<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="">
		<meta name="author" content="">
		<link rel="icon" href="../../favicon.ico">
		<link rel="stylesheet" href="assets/css/loginstyle.css" />
		<title>--请登录--</title>

		<!-- Bootstrap core CSS -->
		<link rel="stylesheet" href="assets/css/bootstrap.css" />
		<!-- Custom styles for this template -->
		<link rel="stylesheet" href="assets/css/signin.css" />
		<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
	</head>

	<body>

		<div class="container">
			<div class="row">
				
				<img src="assets/img/logo.png"  / >
			</div>
			
			<div class="row">
				<header class="col-md-offset-3 col-md-6 col-sm-offset-4 col-sm-4 col-xs-offset-4 col-xs-4 ">
					<h2>梓美家居后台管理系统</h2>
					<br />
					<br />
					<br />
				</header>
				
			</div>

			<div class="row">
				<div class="loginbg col-md-offset-7 col-md-4  col-sm-offset-5 col-sm-6 col-xs-offset-5 col-xs-6">
					<div>
						<h1>
							<span class="glyphicon glyphicon-home" aria-hidden="true" ></span>
						</h1>
					</div>

					<form class="form-signin" method="post" action="#">
						<label for="inputEmail" class="sr-only">Email address</label>
						<div class="input-group">
							<div class="input-group-addon">
								<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
							</div>
							<input type="email" id="inputEmail" name="inputEmail" class="form-control" placeholder="用户名" required autofocus>
						</div>
						<br/>
						
						<label for="inputPassword" class="sr-only">Password</label>
						<div class="input-group">
							<div class="input-group-addon ">
								<span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
							</div>
							<input type="password" id="inputPassword" name="inputPassword" class="form-control" placeholder="密码" required autofocus>
							<input type="hidden" id="pwd" name="user_psw" class="form-control">
						</div>
						<br />
						
						<button class="btn btn-lg btn-primary btn-block" type="submit" name="login" onclick="MD5()">登录</button>

					</form>
				</div>
			</div>
			<!-- /container -->
	</body>
	<script type="text/javascript">
		function MD5() {
			var password = document.getElementById("inputPassword").value
			var hash = md5(password);
			document.getElementById("pwd").value = hash
			//			alert(hash);
			//			alert(password);
		}
	</script>

	<script src="http://cdn.bootcss.com/blueimp-md5/1.1.0/js/md5.js"></script>

	<script src="http://cdn.bootcss.com/blueimp-md5/1.1.0/js/md5.min.js"></script>

</html>